package com.ruoyi.activiti.mapper;

import com.ruoyi.activiti.domain.dto.WorkflowTrajectory;

import java.util.List;

/**
 * 审批轨迹Mapper接口
 *
 * @author ruoyi
 * @date 2021-07-16
 */
public interface WorkflowTrajectoryMapper
{
    /**
     * 查询审批轨迹
     *
     * @param id 审批轨迹ID
     * @return 审批轨迹
     */
    public WorkflowTrajectory selectWorkflowTrajectoryById(Integer id);

    /**
     * 查询审批轨迹列表
     *
     * @param workflowTrajectory 审批轨迹
     * @return 审批轨迹集合
     */
    public List<WorkflowTrajectory> selectWorkflowTrajectoryList(WorkflowTrajectory workflowTrajectory);

    /**
     * 新增审批轨迹
     *
     * @param workflowTrajectory 审批轨迹
     * @return 结果
     */
    public int insertWorkflowTrajectory(WorkflowTrajectory workflowTrajectory);

    /**
     * 修改审批轨迹
     *
     * @param workflowTrajectory 审批轨迹
     * @return 结果
     */
    public int updateWorkflowTrajectory(WorkflowTrajectory workflowTrajectory);

    /**
     * 删除审批轨迹
     *
     * @param id 审批轨迹ID
     * @return 结果
     */
    public int deleteWorkflowTrajectoryById(Integer id);

    /**
     * 批量删除审批轨迹
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteWorkflowTrajectoryByIds(Integer[] ids);
}
